#pragma once
#include "commoninc.h"
#include "projitem.h"

class ProjWnd : public QFrame {
    Q_OBJECT
public:
    ProjWnd(QWidget *p = nullptr);
    ~ProjWnd();

public:
    void addNewProjGroup(QJsonObject obj);
    QJsonObject getJsonData();

private:
    void initUI();

private slots:
    void addEmptyGroup();
    void removeGroup(ProjGroup *);

private:
    QVBoxLayout *_mainVbLayout;

    QPushButton *_addNewGroupBtn;
    QVector<ProjGroup*> _projGpList;
};